﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Users/UserMaster.Master" AutoEventWireup="true" CodeBehind="Booking.aspx.cs" Inherits="EHotelMS.View.Users.Booking" EnableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyBody" runat="server">
    <div class="container-fluid">
        <div class="row">
            <div class="col">
                <div class="row">
                    <div class="col">
                        <div class="row">
                            <div class="col">
                                <div class="mb-3">
                                    <label for="RoomTb" class="form-label">客房名稱</label>
                                    <input type="text" class="form-control" id="RoomTb" runat="server">
                                </div>
                                <div class="mb-3">
                                    <label for="DateInTb" class="form-label">入住時間</label>
                                    <input type="date" class="form-control" id="DateInTb" runat="server">
                                </div>
                            </div>

                            <div class="col">
                                <div class="mb-3">
                                    <label for="DateOutTb" class="form-label">退房時間</label>
                                    <input type="date" class="form-control" id="DateOutTb" runat="server">
                                </div>
                                <div class="mb-3">
                                    <label for="AmountTb" class="form-label">價格</label>
                                    <input type="text" class="form-control" id="AmountTb" runat="server">
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col">
                                <div>
                                    <label id="ErrMsg" runat="server" class="text-danger"></label>
                                    <asp:Button ID="BookBtn" runat="server" Text="預定" class="btn btn-warning" OnClick="BookBtn_Click" />
                                    <!--<asp:Button ID="ResetBtn" runat="server" Text="重置" class="btn btn-danger" />-->
                                </div>
                            </div>
                        </div>



                    </div>
                </div>
                <h3 class="text-chocolate">客房信息</h3>
                <asp:GridView ID="RoomsGV" runat="server" class="table" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" OnSelectedIndexChanged="RoomsGV_SelectedIndexChanged">
                    <Columns>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select" Text="選取"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                    <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FFF1D4" />
                    <SortedAscendingHeaderStyle BackColor="#B95C30" />
                    <SortedDescendingCellStyle BackColor="#F1E5CE" />
                    <SortedDescendingHeaderStyle BackColor="#93451F" />
                </asp:GridView>
            </div>
            <div class="col">
                <div class="row">
                    <div class="col"></div>
                    <div class="col">
                        <h2 class="text-chocolate">客房訂單結算</h2>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <asp:GridView ID="BookingGV" runat="server" class="table" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2">
                            <Columns>
                                <asp:TemplateField ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select" Text="選取"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FFF1D4" />
                            <SortedAscendingHeaderStyle BackColor="#B95C30" />
                            <SortedDescendingCellStyle BackColor="#F1E5CE" />
                            <SortedDescendingHeaderStyle BackColor="#93451F" />
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>

</asp:Content>


